package com.pig4cloud.pig.demo.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.demo.feign.Entity.Article;
import com.pig4cloud.pig.demo.feign.vo.MyArticleVO;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ArticleService extends IService<Article> {
    public long findCategoryCount(String category) throws IOException;

    public int insertArticle(Article article);

    public List<Map<String, Object>> pagingQuery(String category, int start, int size) throws IOException;

    public String findArticleContentById(Long id) throws IOException;

    public Article findById(Long id);

    public List<Map<String, Object>> searchByKeyword(String keyword) throws IOException;

    public List<MyArticleVO> queryMyArticleVO(Long userId);
}
